<!doctype html>
<html lang="en">
<head>
    {include file="public/header" /}
</head>
<body>
    <!-- 顶部开始 -->
    <div class="container">
        <div class="logo"><a href="./index.html">网站管理系统2.0</a></div>
        <div class="left_open">
            <i title="展开左侧栏" class="iconfont">&#xe699;</i>
        </div>
        <ul class="layui-nav right" lay-filter="">
          <li class="layui-nav-item">
            <a href="javascript:;">{$user.username}</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
              <dd><a href="./login.html">退出</a></dd>
            </dl>
          </li>
          <li class="layui-nav-item to-index"><a href="/">前台首页</a></li>
        </ul>
        
    </div>
    <!-- 顶部结束 -->
    <!-- 中部开始 -->
     <!-- 左侧菜单开始 -->
    <div class="left-nav">
      <div id="side-nav">
        <ul id="nav">
            {if condition="$user.username=='admin'"}
            <li class="open">
                <a _href="{:url('User/index')}">
                    <i class="iconfont"></i>
                    <cite>管理员</cite>
                </a>
            </li>
            {/if}
            {foreach name="param" item = "v"}
            <li>
                {if condition="$v.model && $v.action"}
                 <a _href="{:url($v['model'].'/'.$v['action'])}">
                 {else}
                 <a _href="javascript:;">
                 {/if}
                    <i class="iconfont">&#xe6b8;</i>
                    <cite>{$v.name}</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                 </a>
                     {notempty name="$v.son"}
                <ul class="sub-menu">
                    {foreach name="$v.son" item = "vv"}
                    <li>
                        {if condition="$vv.model && $vv.action"}
                        <a _href="{:url($vv['model'].'/'.$vv['action'])}">
                         {else}
                            <a _href="javascript:;">
                        {/if}
                            <i class="iconfont">&#xe723;</i>
                            <cite>{$vv.name}</cite>
                            <i class="iconfont nav_right">&#xe723;</i>
                        </a>
                            {notempty name="$vv.son"}
                        <ul class="sub-menu">
                            {foreach name="$vv.son" item = "vvv"}
                            <li>
                                {if condition="$vvv.model && $vvv.action"}
                                <a _href="{:url($vvv['model'].'/'.$vvv['action'])}">
                                    {else}
                                    <a _href="javascript:;">
                                        {/if}
                                    <i class="iconfont">&#xe6b8;</i>
                                    <cite>{$vvv.name}</cite>

                                </a>
                            </li >
                            {/foreach}

                        </ul>
                            {/notempty}
                    </li>
                    {/foreach}
                </ul>
                     {/notempty}
            </li>
            {/foreach}

        </ul>
      </div>
    </div>
    <!-- <div class="x-slide_left"></div> -->
    <!-- 左侧菜单结束 -->
    <!-- 右侧主体开始 -->
    <div class="page-content">
        <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
          <ul class="layui-tab-title">
            <li class="home"><i class="layui-icon">&#xe68e;</i>我的桌面</li>
          </ul>
          <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src='/index/welcome.html' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
            </div>
          </div>
        </div>
    </div>
    <div class="page-content-bg"></div>
    <!-- 右侧主体结束 -->
    <!-- 中部结束 -->
    <!-- 底部开始 -->
    <div class="footer">
        <div class="copyright">Copyright ©2017 x-admin v2.3 All Rights Reserved</div>  
    </div>
    <!-- 底部结束 -->
    <script>
    //百度统计可去掉
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();
    </script>
</body>
</html>